package com.szt.sy.controller.api.open;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.szt.sy.controller.base.ApiBaseController;
import com.szt.sy.entity.blog.SiteInfo;
import com.szt.sy.service.blog.siteinfo.SiteInfoService;
import com.szt.sy.vo.rep.base.RepBaseVO;

/***
 * 接口-开放-网站信息
 * 
 * @author wwy
 *
 */
@RestController
@RequestMapping("api/open/siteInfo")
public class ApiOpenSiteInfoController extends ApiBaseController {
	
	@Autowired
	private SiteInfoService infoService;
	
	@PostMapping("get")
	public RepBaseVO getSiteInfo() {
		SiteInfo siteInfo = infoService.getSiteInfo();
		return RepBaseVO.newIntance().setCommonSuccess().setData(siteInfo);
	}
}
